﻿<html>
<head><title>angular练习</title>
      <script src="angular.min.js"></script>

<script>
   var app = angular.module('myApp',[]);

   app.filter('myFilter',function(){
        return function(x){
           var y = 0;
           if(x>5){
              return x;
           }
        }
   });
  
   app.controller('myCtrol1',function($scope){
       $scope.counts = [4,5,6,7,8];
   });
</script> 

</head>
<body>
    <div ng-app="myApp" ng-controller="myCtrol1">
	 <ul style="list-style:none">
             <li ng-repeat="x in counts">
                {{ x | myFilter}}
             </li>
         </ul>
    </div>

</body>
</html>